package com.snowwolf.user.service.impl;

import com.snowwolf.user.dao.UserDao;
import com.snowwolf.user.entity.UserEo;
import com.snowwolf.user.service.IUserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

/**
 * @author: topsnowwolf
 * @description:
 * @date: Create in 2019/2/24 10:12
 * @modified by:
 * @versions：0.1.0
 */
@Service
@Slf4j
public class IUserviceImpl implements IUserService {

    @Autowired
    private UserDao userDao;
    @Override
    public UserEo findOne(Long id) {
        return userDao.getOne(id);
    }

    @Override
    public Page<UserEo> findList(Pageable pageable) {
        return userDao.findAll(pageable);
    }
}
